package com.iven.xie.designpattern.mediator.colleague;

/**
 * 抽象同事类
 *
 * @author xiezhendong
 * @date 2021/8/3
 */
public abstract class Colleague {
    protected Mediator mediator;

    public void setMedium(Mediator mediator) {
        this.mediator = mediator;
    }

    public abstract void receive();

    public abstract void send();
}
